package types

type SysUserCreateReq struct {
	Name     string `json:"name" validate:"required"`
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required,min=8,max=32"`
	Phone    string `json:"phone" validate:"required,min=11"`
	Avatar   string `json:"avatar"`
	Status   int    `json:"status"`
}

type SysUserUpdateReq struct {
	Name     string `json:"name" validate:"required"`
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required,min=8,max=32"`
	Phone    string `json:"phone" validate:"required,min=11"`
	Avatar   string `json:"avatar"`
	Status   int    `json:"status"`
}

type SysUserInfoResp struct {
	Id     int      `json:"id"`
	Name   string   `json:"name"`
	Email  string   `json:"email"`
	Avatar string   `json:"avatar"`
	Roles  []string `json:"roles"`
}

type SysUserListResp struct {
	Id     int    `json:"id"`
	Name   string `json:"name"`
	Email  string `json:"email"`
	Avatar string `json:"avatar"`
}
